﻿@using SPMS.Common
@{
    //获得当前用户信息
    FormsPrincipal principal = FormsAuthenticationHelper.GetCurrentPrincipal();
}
<div class="spms-navbar" style="border-bottom: 1px solid #D0D0D0;">
    <div class="spms-navbar-inner">
        <div class="spms-btn-toolbar">
            <div class="spms-btn-group">
                <a class="spms-btn spms-nav-btn" href="#" onclick="spms.event.OnMenuBarButtonClick(this);" title="@SPMS.Web.Properties.Resources.text_cmd_menubar"><i class="spms-navbar-icon-menubar"></i></a>
                <a class="spms-btn spms-nav-btn" href="#" onclick="spms.event.OnMessageBarButtonClick(this);" title="@SPMS.Web.Properties.Resources.text_cmd_messagebar"><i class="spms-navbar-icon-messagebar"></i></a>
                <a class="spms-btn spms-nav-btn" href="#" onclick="spms.navigation.GoHome(this);" title="@SPMS.Web.Properties.Resources.text_cmd_home"><i class="spms-navbar-icon-home"></i></a>
                <a class="spms-btn spms-nav-btn" href="#" onclick="spms.navigation.Refresh(this);" title="@SPMS.Web.Properties.Resources.text_cmd_refresh"><i class="spms-navbar-icon-refresh"></i></a>
            </div>
        </div>
        <ul class="spms-nav spms-pull-right">
            <li><a hidefocus="true" href="#about">[修改密码]</a></li>
            <li><a hidefocus="true" href="@Url.Action("Logout", "Account")">[退出登陆]</a></li>
            <li><a hidefocus="true" href="#about">[个人设定]</a></li>
            <li><span>欢迎您，</span><a hidefocus="true" class="spms-loginuser-link" href="#about"></a></li>
            <li>
                <span>当前角色：</span>
                <select onchange="spms.event.OnCurrentRoleChanged(this);">
                    <option value="SystemAdmin">系统管理员</option>
                    <option value="Scheduler">调度员</option>
                    <option value="Tester">测试员</option>
                </select>

            </li>
        </ul>
    </div>
</div>
<script type="text/javascript">
    //定义当前角色
    var _CurrentRole = 'SystemAdmin';
    //定义应用程序路径
    var _ApplicationPath = '@ViewContext.HttpContext.Request.ApplicationPath';
</script>
